package com.blunka.framework.client.ui.entity;

import java.util.List;

import com.blunka.framework.client.enums.ModelField;
import com.blunka.framework.client.enums.ModelStates;
import com.blunka.framework.client.enums.ModelStatus;
import com.blunka.framework.client.enums.ModelType;

/**
 *
 *
 * @平台：统一开发平台
 * @文件名称：BlkTableTetaData.java
 * @文件描述：业务建模实体,用于导入模型使用
 * @author xuqiang
 * @日期：2018年5月25日下午4:30:19
 *
 */
public class BlkImportTableMetaData implements java.io.Serializable,Cloneable{

	/**
	 * 主键
	 */
	private String tablemetadata_id;

	/**
	 * 上级编码
	 */
	private String father_tablemetadata_id;

	/**
	 * 中文
	 */
	private String zh_cn;

	/**
	 * 英文
	 */
	private String en_us;

	/**
	 * 描述
	 */
	private String describes;

	/**
	 * 业务建模路径
	 */
	private String obj_path;

	/**
	 * 建模节点状态
	 */
	private ModelStates model_states;

	/**
	 * 建模节点类型
	 */
	private ModelType model_type;

	/**
	 * 字段类型
	 */
	private ModelField model_field;

	/**
	 * 字段长度
	 */
	private int model_field_len;

	/**
	 * 是否主键
	 */
	private ModelStatus is_primary_key;

	/**
	 * 是否可为空
	 */
	private ModelStatus is_empty;

	/**
	 * 显示长度
	 */
	private int show_width;

	/**
	 * 是否隐藏
	 */
	private ModelStatus is_hidden;

	/**
	 * 是否可预览
	 */
	private ModelStatus is_viewer;

	/**
	 * 是否只读
	 */
	private ModelStatus is_reader;

	/**
	 * 是否可编辑
	 */
	private ModelStatus is_disabled;

	/**
	 * 错误提示
	 */
	private String error_msg;

	/**
	 * 输入提示
	 */
	private String input_promit;

	/**
	 * 所属分组信息
	 */
	private String group_title;

	/**
	 * 自定义配置属性
	 */
	private String user_config;

	/**
	 * 下拉字段属性配置值
	 */
	private String sel_options;

	/**
	 * 视图语句
	 */
	private String view_sql;

	/**
	 * 排序
	 */
	private int order_by;
	
	private List<BlkImportTableMetaData> childArray;

	public String getTablemetadata_id() {
		return tablemetadata_id;
	}

	public void setTablemetadata_id(String tablemetadata_id) {
		this.tablemetadata_id = tablemetadata_id;
	}

	public String getFather_tablemetadata_id() {
		return father_tablemetadata_id;
	}

	public void setFather_tablemetadata_id(String father_tablemetadata_id) {
		this.father_tablemetadata_id = father_tablemetadata_id;
	}

	public String getZh_cn() {
		return zh_cn;
	}

	public void setZh_cn(String zh_cn) {
		this.zh_cn = zh_cn;
	}

	public String getEn_us() {
		return en_us;
	}

	public void setEn_us(String en_us) {
		this.en_us = en_us;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public String getObj_path() {
		return obj_path;
	}

	public void setObj_path(String obj_path) {
		this.obj_path = obj_path;
	}

	public ModelStates getModel_states() {
		return model_states;
	}

	public void setModel_states(ModelStates model_states) {
		this.model_states = model_states;
	}

	public ModelType getModel_type() {
		return model_type;
	}

	public void setModel_type(ModelType model_type) {
		this.model_type = model_type;
	}

	public ModelField getModel_field() {
		return model_field;
	}

	public void setModel_field(ModelField model_field) {
		this.model_field = model_field;
	}

	public int getModel_field_len() {
		return model_field_len;
	}

	public void setModel_field_len(int model_field_len) {
		this.model_field_len = model_field_len;
	}

	public ModelStatus getIs_primary_key() {
		return is_primary_key;
	}

	public void setIs_primary_key(ModelStatus is_primary_key) {
		this.is_primary_key = is_primary_key;
	}

	public ModelStatus getIs_empty() {
		return is_empty;
	}

	public void setIs_empty(ModelStatus is_empty) {
		this.is_empty = is_empty;
	}

	public int getShow_width() {
		return show_width;
	}

	public void setShow_width(int show_width) {
		this.show_width = show_width;
	}

	public ModelStatus getIs_hidden() {
		return is_hidden;
	}

	public void setIs_hidden(ModelStatus is_hidden) {
		this.is_hidden = is_hidden;
	}

	public ModelStatus getIs_viewer() {
		return is_viewer;
	}

	public void setIs_viewer(ModelStatus is_viewer) {
		this.is_viewer = is_viewer;
	}

	public ModelStatus getIs_reader() {
		return is_reader;
	}

	public void setIs_reader(ModelStatus is_reader) {
		this.is_reader = is_reader;
	}

	public ModelStatus getIs_disabled() {
		return is_disabled;
	}

	public void setIs_disabled(ModelStatus is_disabled) {
		this.is_disabled = is_disabled;
	}

	public String getError_msg() {
		return error_msg;
	}

	public void setError_msg(String error_msg) {
		this.error_msg = error_msg;
	}

	public String getInput_promit() {
		return input_promit;
	}

	public void setInput_promit(String input_promit) {
		this.input_promit = input_promit;
	}

	public String getGroup_title() {
		return group_title;
	}

	public void setGroup_title(String group_title) {
		this.group_title = group_title;
	}

	public String getUser_config() {
		return user_config;
	}

	public void setUser_config(String user_config) {
		this.user_config = user_config;
	}

	public String getSel_options() {
		return sel_options;
	}

	public void setSel_options(String sel_options) {
		this.sel_options = sel_options;
	}

	public int getOrder_by() {
		return order_by;
	}

	public void setOrder_by(int order_by) {
		this.order_by = order_by;
	}

	public String getView_sql() {
		return view_sql;
	}

	public void setView_sql(String view_sql) {
		this.view_sql = view_sql;
	}

	public List<BlkImportTableMetaData> getChildArray() {
		return childArray;
	}

	public void setChildArray(List<BlkImportTableMetaData> childArray) {
		this.childArray = childArray;
	}

	@Override
	public String toString(){
		return zh_cn;
	}
	
	@Override
	public Object clone() throws CloneNotSupportedException{
		return super.clone();
	}
}
